<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
%>
<body>
	<div id="content-header">
		<h1>学生管理</h1>
	</div>
	<div id="breadcrumb">
		<a href="#" title="Go to Home" class="tip-bottom"><i
			class="icon-home"></i> 人员管理</a> <a href="#" class="current">查看学生</a>
	</div>
	<div class="container-fluid" ms-controller="StuManage">
		<div class="row-fluid">
			<div class="span12">
				<div class="widget-box">
					<div class="widget-title">
						<h5>学生列表</h5>
					</div>
					<div class="widget-content nopadding">
						<table class="table table-bordered data-table">
							<thead>
								<tr>
									<th>姓名</th>
									<th>学号</th>
									<th>班级</th>
									<th>性别</th>
									<th>年龄</th>
									<th>专业</th>
									<th></th>
								</tr>
							</thead>
							<tbody>
								<tr ms-repeat-obj="dataList">
									<th>{{obj.stuname}}</th>
									<th>{{obj.stuid}}</th>
									<th>{{obj.banji}}</th>
									<th>{{obj.sex}}</th>
									<th>{{obj.age}}</th>
									<th>{{obj.major}}</th>
									<th style="width: 150px">
										<button ms-click="find(obj.id)" class="btn btn-info">查看</button>
										<!-- 										<button ms-click="edit(obj.id)" class="btn btn-primary">修改</button> -->
									</th>
								</tr>
							</tbody>
						</table>
					</div>
				</div>
			</div>
			<div class="modal fade" id="myModal" tabindex="-1" role="dialog"
				aria-labelledby="myModalLabel" aria-hidden="true">
				<div class="modal-dialog">
					<div class="modal-content">
						<div class="modal-header">
							<button type="button" class="close" data-dismiss="modal"
								aria-hidden="true">&times;</button>
							<h4 class="modal-title" id="myModalLabel">{{name}}同学的信息</h4>
						</div>
						<div class="modal-body">
							<form class="form-horizontal">
								<div>
									<strong>姓名：</strong> <input ms-duplex="name" type="text"
										style="height: 30px; width: 450px; float: right;" readonly>
								</div>
								<div style="margin-top: 30px">
									<strong>学号：</strong> <input ms-duplex="stuno" type="text"
										style="height: 30px; width: 450px; float: right;" readonly>
								</div>
								<div style="margin-top: 30px">
									<strong>性别：</strong> <input ms-duplex="sex" type="text"
										style="height: 30px; width: 450px; float: right;">
								</div>
								<div style="margin-top: 30px">
									<strong>班级：</strong> <input ms-duplex="banji" type="text"
										style="height: 30px; width: 450px; float: right;">
								</div>
								<div style="margin-top: 30px">
									<strong>年龄：</strong> <input ms-duplex="age" type="text"
										style="height: 30px; width: 450px; float: right;">
								</div>
								<div style="margin-top: 30px">
									<strong>专业：</strong> <input ms-duplex="major" type="text"
										style="height: 30px; width: 450px; float: right;">
								</div>
							</form>
						</div>
						<div class="modal-footer">
							<button type="button" class="btn btn-default"
								data-dismiss="modal">关闭</button>
							<button ms-visible="isupdate" ms-click="update()" type="button"
								class="btn btn-primary">提交更改</button>
						</div>
					</div>
					<!-- /.modal-content -->
				</div>
			</div>
		</div>
		<script src="<%=path%>/js/jquery.min.js"></script>
		<script src="<%=path%>/js/bootstrap.min.js"></script>
		<script src="<%=path%>/js/jquery.ui.custom.js"></script>
		<script src="<%=path%>/js/jquery.uniform.js"></script>
		<script src="<%=path%>/js/select2.min.js"></script>
		<script src="<%=path%>/js/jquery.dataTables.min.js"></script>
		<script src="<%=path%>/js/unicorn.tables.js"></script>
		<script src="<%=path%>/js/sweetalert.min.js"></script>
	</div>
</body>